﻿using Orchard.ContentManagement.MetaData;
using Orchard.Core.Contents.Extensions;
using Orchard.Data.Migration;

namespace Codinlab.CustomClass {
    public class CustomClassMigrations : DataMigrationImpl {
        public int Create() {
            ContentDefinitionManager.AlterPartDefinition("CustomClassPart", builder => builder
                .Attachable()
                .WithDescription("Allows to add custom CSS class to your Content Item.")
            );

            return 1;
        }
    }
}